<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initDoctype()
    {
    	$this->bootstrap('view');
        $view = $this->getResource('view');
        $view->doctype('XHTML1_STRICT');
    }
	
   protected function _initNavigation() {
   		
   		$this->bootstrap('db');
   		$db = $this->getResource('db');
   		//get the topmenu data
   		$loggedInUser = new Core_Common_Views_Helpers_LoggedInUser();
   		$loggedInUser = Core_Common_Menu::LoggedinMenu();
   		//get the webapp menu data
   		//$menudata = null;
   		$menudata = Core_Common_Menu::Menu();
   		//get the layout object
   		$this->bootstrap('layout');
   		if(isset($menudata))
   			$menuright = new Zend_Navigation($menudata);
   		else 
   			$menuright = null;
    	$layout = $this->getResource('layout');
    	$layout->logged = $loggedInUser;
    	$layout->menu = $menuright;
   		
   	
   }

}

